package com.qjs.service;

import java.util.List;
import java.util.Map;

public interface IBaseService<T> {
	T insert(T record) throws Exception;
	
	int insertArray(List<T> records) throws Exception;

	int deleteById(Long id) throws Exception;

	int deleteBy(T record) throws Exception;

	int updateBy(T record) throws Exception;
	
	int updateArray(List<T> records) throws Exception;

	Integer getCount(Map<String, Object> paramsMap) throws Exception;

	T getById(Long id) throws Exception;

	List<T> queryBy(T record) throws Exception;
	
	
	List<Map<String, Object>> search(String str) throws Exception;
	
	List<Map<String, Object>> search(String[] str) throws Exception;
	
	List<Map<String, Object>> search(Map<String, Object> strMap) throws Exception;
	
	List<Map<String, Object>> search2(Map<String, Object> strMap) throws Exception;
	
	List<Map<String, Object>> search3(Map<String, Object> strMap) throws Exception;
	
	List<Map<String, Object>> queryBy2(Map<String, Object> strMap) throws Exception;
	
	List<Map<String, Object>> queryBy3(Map<String, Object> strMap) throws Exception;
}
